using System.Collections;
using System.Collections.Generic;
using TMPro;
using UnityEngine;
using UnityEngine.UI;

public class Pop : MonoBehaviour
{
    public TMP_Text TextPop;
    public Button ButtonClose;

    // Start is called before the first frame update
    void Start()
    {
        ButtonClose.onClick.AddListener(() => this.Hide());
    }

    // Update is called once per frame
    void Update()
    {
        
    }

    public void PopObject(object o)
    {
        this.Show();
        this.TextPop.text = o.ToString();
    }
}
